package com.yywz;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class FindLargest {

	public static void main(String[] args) {
		int[] a = {9,1,5,6,2,1,11};
		Integer largest = a[0];
		for(int i=1; i < a.length; i++) {
			if(largest.compareTo(a[i]) < 0)
				largest = a[i];
		}
		System.out.println(largest);
//		Collections.sort(list, c);
		Collections.reverseOrder();
	}
	
	public void getMax(){
		List<Integer> list = new ArrayList<Integer>();
	}
}
